<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../node_modules//vue/dist/vue.js"></script>
</head>
<body>
    <div id="app">
        <a v-bind:href="link">gobaidu</a>
        <a :href="link">gobaidu</a>
        <span v-bind:class="{active:isActive,'text-danger':hasError}"  :style="{color:color1,fontSize:size}">你好</span>
    </div>
    
</body>
<script>
    new Vue({
        el: "#app",
        data:{
            link:"http://www.baidu.com",
            isActive: true,
            hasError: true,
            color1: 'red',
            size: '36px'
        },
        methods: {
             
        }
    })
</script>
</html>